<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>News</title>
</head>
<body>
  <h2>欢迎 <%= userInfo %> </h2>
  <h2>新闻列表</h2>
  <h2><%= csrf %> </h2>
  <ul>
    <% for( let i = 0; i < data.length; i++ ) { %>
      <li><a href="/newscontent?aid=<%= data[i].aid %>" ><%= data[i].title %></a>--- <%= helper.formatDate(data[i].dateline) %>  </li>
    <% } %>
  </ul>
  
</body>
</html>